<template>
  <div>
    <div class="app-footer">
      <div class="link">
        <span @click="toHome">商城热卖</span>|
        <span @click="toBrands">全部商品</span>|
        <span @click="toUser">个人中心</span>
      </div>
      <div class="pic">
        <img src="/static/images/footer-pic.png">
      </div>
      <p>美控家版权所有</p>
    </div>
  </div>
</template>
<script>
export default {
  methods: {
    toHome () {
      wx.switchTab({ url: '/pages/home/index' })
    },
    toBrands () {
      wx.navigateTo({ url: '/pages/brand/category' })
    },
    toUser () {
      wx.switchTab({ url: '/pages/user/index' })
    }
  }
}
</script>

<style lang="less" scoped>
.app-footer {
  width: 100%;
  display: flex;
  flex-flow: column nowrap;
  justify-items: baseline;
  padding: 30rpx 0;
  color: #b8b8b8;
  .link {
    display: flex;
    font-size: 18rpx;
    margin: 4rpx 0;
    justify-content: center;
    span {
      padding: 0 5rpx;
    }
  }
  .pic {
      display: flex;
      justify-content: center;
    img {
      height: 40rpx;
      width: 136rpx;
    }
  }
  p {
    text-align: center;
    font-size: 18rpx;
  }
}
</style>
